<template>
  <div id="loginTop">
    <div class="home" @click="$router.push('/home')">
      <van-icon name="wap-home" class="icon"/>首页
    </div>
    <div>{{ title }}</div>
    <div>
      <slot name="right"/>
    </div>
  </div>
</template>


<script>
export default {
  props: ["title"],
};
</script>


<style lang="less" scoped>
#loginTop {
  height: 12.5vw;
  background-color: white;
  padding: 0 4.167vw;
  display: flex;
  justify-content: space-between;
  div {
    text-align: center;
    line-height: 12.5vw;
    font-size: 4.444vw ;
  }
  .home{
    color: #616060;
    font-size: 3.611vw;
    .icon{
        vertical-align:-0.556vw;
      }
  }
}
</style>
